function reduxLogger({ getState }) {
  return function (next) {
    return function (action) {
      console.log(`before data:`, getState())
      next(action)
      console.log(`after-data:`, getState())
      return action
    }
  }
}

export default reduxLogger
